<?php
namespace App\Admin\Forms\Catesets;

use Encore\Admin\Widgets\Form;

class Attach extends Setbase
{
    /**
     * The form title.
     *
     * @var string
     */
    public $title  = '附件';
 
    /**
     * Build a form here.
     */
    public function form()
    {
		$this->hidden('id');
		$this->text('ext', '文件后缀')->default(config('exts.attach.sets.ext'))->help('允许上传文件的后缀');
		$this->number('maxsize', '文件上传大小限止')->default(config('exts.attach.sets.maxsize'))->help('单位K,默认'.config('exts.attach.sets.maxsize').'K');		
		$this->switch('note','开启说明')->default(config('exts.attach.sets.note'))->help('开启附件说明功能');

		$this->reset_app();
    }

}
